/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import java.util.UUID;
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.entity.Entity;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class bn
/*    */ {
/*    */   @eos/moe/dragoncore/t(v = {"取实体"})
/*    */   public static o v(String a) {
/* 16 */     Entity entity = v(a);
/* 17 */     if (entity != null) {
/* 18 */       return new pf(entity);
/*    */     }
/* 20 */     return xk.w;
/*    */   }
/*    */ 
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"实体是否存在", "Entity_Exists", "Entity_Exist"})
/*    */   public static boolean v(String a) {
/* 26 */     return (v(a) != null);
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取实体坐标x"})
/*    */   public static double t(o a) {
/* 31 */     Entity entity = a.v();
/* 32 */     if (entity != null) {
/* 33 */       return entity.field_70165_t;
/*    */     }
/* 35 */     return 0.0D;
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取实体坐标y"})
/*    */   public static double h(o a) {
/* 40 */     Entity entity = a.v();
/* 41 */     if (entity != null) {
/* 42 */       return entity.field_70163_u;
/*    */     }
/* 44 */     return 0.0D;
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取实体坐标z"})
/*    */   public static double z(o a) {
/* 49 */     Entity entity = a.v();
/* 50 */     if (entity != null) {
/* 51 */       return entity.field_70161_v;
/*    */     }
/* 53 */     return 0.0D;
/*    */   }
/*    */   
/*    */   @eos/moe/dragoncore/t(v = {"取实体高度"})
/*    */   public static double v(o a) {
/* 58 */     Entity entity = a.v();
/* 59 */     if (entity != null) {
/* 60 */       return entity.field_70131_O;
/*    */     }
/* 62 */     return 0.0D;
/*    */   }
/*    */   
/*    */   public static Entity v(String a) {
/* 66 */     ArrayList arrayList = new ArrayList((Minecraft.func_71410_x()).field_71441_e.func_72910_y());
/*    */     
/*    */     try {
/* 69 */       int i = Integer.parseInt(a);
/* 70 */       for (Entity entity : arrayList) {
/* 71 */         if (entity.func_145782_y() == i) {
/* 72 */           return entity;
/*    */         }
/*    */       } 
/* 75 */     } catch (NumberFormatException numberFormatException) {
/*    */       try {
/* 77 */         UUID uUID = UUID.fromString(a);
/* 78 */         for (Entity entity : arrayList) {
/* 79 */           if (uUID.equals(entity.func_110124_au())) {
/* 80 */             return entity;
/*    */           }
/*    */         } 
/* 83 */       } catch (Exception exception) {}
/*    */     } 
/*    */ 
/*    */     
/* 87 */     return null;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\bn.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */